import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import {CanDeactivateGuard} from 'great-ngform';
import { FormFormLeaveComponent } from './form-leave/form-leave.component';
import { FormFormValidatorComponent } from './form-validator/form-validator.component';

const routes: Routes = [
  { path: 'form-leave', component: FormFormLeaveComponent, canDeactivate: [CanDeactivateGuard] },
  { path: 'form-validator', component: FormFormValidatorComponent }];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class FormRoutingModule { }
